image edit and compress