I have done this and tested with a jpeg image and it now works fine for me