Testing image handling