@Jimako I ended up going your way, because i have fields that store the image path, but i migh need my solution also, because i have images linked to unique id's in database tables.
I know it's bad practice, but if i had another couple of field to only store the images urls, i would end up with a table of 20mb.....