move img field to data object for simplicity in testing