Variable rate deep image compression with modulated autoencoder