Fixed problem when image wasn't in same directory