Made trash icon for photo delete only visible on hover
Tweaked for loops to not recalculate array length on each iteration