Faster image writing