Bugfix: Sometimes, storeId does not match and file is generated over and over again ... I don't know why, but this little patch checks this and goes back to the right image.