Update image.php

Fix error: "Undefined offset: bits"