fixing splitting prepareRequest calls between images and requests